// secondary_page/living-expenses/living-expenses.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    option1: [
      { text: '全部户号', value: 0 },
      { text: '新款商品', value: 1 },
      { text: '活动商品', value: 2 },
    ],
    option2: [
      { text: '全部时间', value: 'a' },
      { text: '时间正序', value: 'b' },
      { text: '时间倒序', value: 'c' },
    ],
    value1: 0,
    value2: 'a',
    context:[
      {month:'04月',data:[
        {type:'电费',name:'*志军',day:'04-16',time:'07：16',bianhao:'1000033513',money:'100.00'},
        {type:'水费',name:'*志军',day:'04-24',time:'16：46',bianhao:'10003977551',money:'100.00'},
        ]
      },
      {month:'03月',data:[
        {type:'电费',name:'*志军',day:'03-16',time:'07：16',bianhao:'1000033513',money:'100.00'},
        {type:'水费',name:'*志军',day:'03-24',time:'16：46',bianhao:'10003977551',money:'200.00'},
        ]
      },
    ],
  },
  jumpUrl(e){
    wx.navigateTo({
      url: '/three_level_page/payment-details/payment-details',
    })
    console.log(e.currentTarget.dataset);
  },
  electricity(){
    wx.navigateTo({
      url: '/three_level_page/electricity-order/electricity-order',
    })
  },
  water(){
    wx.navigateTo({
      url: '/three_level_page/water-charge/water-charge',
    })
  },
  gas(){
    wx.navigateTo({
      url: '/three_level_page/gas-charge/gas-charge',
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})